/*
 * @brief: 
 * @Author: TzzzT
 * @Date: 2022-05-24 13:42:08
 * @LastEditTime: 2023-01-02 14:07:31
 * @LastEditors: TzzzT
 */

#include "driver/gpio.h"
#include "esp_log.h"

#include "RCS_led.h"



static const char *LED_TAG = "LED_TAG";

//////////////////////////led/////////////////////////////
void led_init(void){
    ESP_LOGI(LED_TAG, "configured GPIO LED!");
    gpio_reset_pin(LED_2_PIN);
    gpio_reset_pin(LED_9_PIN);
    /* Set the GPIO as a push/pull output */
    gpio_set_direction(LED_2_PIN, GPIO_MODE_OUTPUT);
    gpio_set_direction(LED_9_PIN, GPIO_MODE_OUTPUT);
}

void set_led_val(uint16_t io, uint8_t s_led_state)
{
    /* Set the GPIO level according to the state (LOW or HIGH)*/
    gpio_set_level(io, s_led_state);
}
